# Makefile for building the odbc library

# Module settings
MODULE_NAME:=odbcpp_tests
OUT_FILE:=odbcpp_tests
SOURCES_DIRS:=.
BUILD_DIR:=../build

# Additional compile options
INCLUDE_PATHS:=-I../include -I$(BOOST_INCLUDE_DIR)
LIBS:=-L$(BOOST_LIB_DIR) -L$(BUILD_DIR) -lodbcpp -lboost_unit_test_framework-gcc34-mt -lodbc

RUN_TEST:
	@echo Running unit tests
	@$(BUILD_DIR)/$(OUT_FILE) --result_code=no --report_level=short

# Additional rule dependencies
ALL_DEP:=RUN_TEST
FINAL_DEP:=

CPP_FLAGS+=-DBOOST_TEST_DYN_LINK 

# Include the Makefile.rules file to handle the building rules
include ../Makefile.rules
